//  this library.
/// 获取一键登陆key值和协议url Model
class ConfigModel {
  Yidun? yidun;
  AppConfig? appConfig;

  ConfigModel({this.yidun, this.appConfig});

  ConfigModel.fromJson(Map<String, dynamic> json) {
    yidun = json['yidun'] != null ? Yidun.fromJson(json['yidun']) : null;
    appConfig = json['app_config'] != null
        ? AppConfig.fromJson(json['app_config'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (yidun != null) {
      data['yidun'] = yidun!.toJson();
    }
    if (appConfig != null) {
      data['app_config'] = appConfig!.toJson();
    }
    return data;
  }
}

class Yidun {
  String? businessId;

  Yidun({this.businessId});

  Yidun.fromJson(Map<String, dynamic> json) {
    businessId = json['businessId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['businessId'] = businessId;
    return data;
  }
}

class AppConfig {
  String? ysxy;
  String? yhxy;

  // 客服跳转路径
  String? customerServiceLink;

  AppConfig({this.ysxy, this.yhxy});

  AppConfig.fromJson(Map<String, dynamic> json) {
    ysxy = json['ysxy'];
    yhxy = json['yhxy'];
    customerServiceLink = json["customer-service-link"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['ysxy'] = ysxy;
    data['yhxy'] = yhxy;
    data["customer-service-link"] = customerServiceLink;
    return data;
  }
}
